<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="SpecificationAttributeDetails.aspx.cs" Inherits="Tathata.Web.Administration.Administration_SpecificationAttributeDetails" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="Modules/SimpleTextBox.ascx" %>
<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <div>
        <table class="adminContent">
            <tr>
                <td class="adminTitle">
                    Name:
                </td>
                <td class="adminData">
                    <nopCommerce:SimpleTextBox runat="server" ID="txtName" CssClass="adminInput" ErrorMessage="Name is required">
                    </nopCommerce:SimpleTextBox>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Button ID="SaveButton" runat="server" CssClass="adminButton" Text="Save" OnClick="SaveButton_Click">
                    </asp:Button>
                </td>
                <td align="left">
                    <asp:Button ID="DeleteButton" runat="server" CssClass="adminButton" Text="Delete"
                        OnClick="DeleteButton_Click" CausesValidation="false"></asp:Button>
                    <ajaxToolkit:ConfirmButtonExtender ID="ConfirmDeleteButtonExtender" runat="server"
                        TargetControlID="DeleteButton" DisplayModalPopupID="ModalPopupExtenderDelete" />
                    <br />
                    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtenderDelete" runat="server" TargetControlID="DeleteButton"
                        PopupControlID="pnlDeletePopup" OkControlID="deleteButtonOk" CancelControlID="deleteButtonCancel"
                        BackgroundCssClass="modalBackground" />
                    <asp:Panel ID="pnlDeletePopup" runat="server" Style="display: none; width: 250px;
                        background-color: White; border-width: 2px; border-color: Black; border-style: solid;
                        padding: 20px;">
                        <div style="text-align: center;">
                            Are you sure?
                            <br />
                            <br />
                            <asp:Button ID="deleteButtonOk" runat="server" Text="OK" CssClass="adminButton" CausesValidation="false" />
                            <asp:Button ID="deleteButtonCancel" runat="server" Text="Cancel" CssClass="adminButton"
                                CausesValidation="false" />
                        </div>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
